<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; %> 
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<br/><br/><br/><a href='TbDispatchListServlet?method=showadd'><img src="./images/button-add.gif" border="0"/></a><br/>
<table>
<tr>
    <td>序号</td>
    <td>派工合同号</td>
    <td>派单对应合同号</td>
    <td>对应公司及产品大类</td>
    <td>派单名称</td>
    <td>派单预算</td>
    <td>回款查询</td>
    <td>项目状态</td>
    <td>修改</td>
    <td>删除</td>
</tr>
<c:forEach items="${sessionScope.tbDispatchListList==null?'':sessionScope.tbDispatchListList}" var="tbDispatchList" varStatus="status">
<tr>
    <td>&nbsp;${status.index+1}</td>
    <td>${tbDispatchList.dispatchListCode}</td>
    <td>${tbDispatchList.contractCode}</td>
    <td>${tbDispatchList.tbCompanyProductTypeMiddle.tbProductType.productTypeName}</td>
    <td>${tbDispatchList.dispatchListName}</td>
    <td>${tbDispatchList.dispatchListBudget}</td>
    <td><a href="TbDispatchListProjectBackSectionMiddleServlet?method=backSectionListByDispatchCode&dispatchCode=${tbDispatchList.dispatchListCode }">回款</a></td>
    <td><a href="TbDispatchListProjectBackSectionMiddleServlet?method=projectStateListByDispatchCode&dispatchCode=${tbDispatchList.dispatchListCode }">状态</a></td>
    <td><a href='TbDispatchListServlet?method=listById&dispatchListId=${tbDispatchList.dispatchListId}'>修改</a></td>
    <td><a href='TbDispatchListServlet?method=del&delIds=${tbDispatchList.dispatchListId}'>删除</a></td>
</tr>
</c:forEach>
</table>
<jsp:include page="../foot.jsp"></jsp:include>
</body>
</html>